package com.chaosyeb.server.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @Description : TODO
 * @Author : Chaos
 * @Date : 2021/12/6 16:28
 * @Version : 1.0
 **/
public interface UserDetailsService {

    /**
     * 自定义
     *
     * @param username
     * @return
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
}
